#include "objectModel.h"


ObjectModel::ObjectModel(){
	type = GL_TRIANGLES;
	this->listCreated=false;
}

ObjectModel::~ObjectModel(){
	for(std::vector<ModelGroup*>::iterator it=_groups.begin();it!=_groups.end();++it){
		delete *it;
	}

	for(std::map<std::string,Material*>::iterator it=_materials.begin();it!=_materials.end();++it){
		delete it->second;
	}
}


void ObjectModel::setDisplayListId(unsigned int id){
	this->listid=id;
	this->listCreated=true;
}
